<template>
  <div class="wrap">
    
    <el-button type="primary" icon="el-icon-arrow-right" circle size="small" @click="nav"></el-button>

    <ul id="box"></ul>

    <div class="mask">
      <div class="bg-mask"></div>
      <div class="name">主观题智能阅卷</div>
    </div>
  </div>
</template>

<script>
import { start } from '../assets/js/3d.js'
export default {
  mounted() {
    start()
  },
  methods: {
    nav() {
      this.$router.push('/exam');
    }
  }
}
</script>

<style scoped>
.el-button {
  position: absolute;
  /* width: 32px;
  height: 32px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  z-index: 2; */
  right: 10px;
  top: 50%;
  z-index: 1;
  background: #013F5B !important;
}

li,
ul,
div,
html,
body {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

li {
  list-style-type: none;
}

.wrap {
  height: 100%;
  overflow: hidden;
  perspective: 800px;
}

#box {
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(-1600px);
  z-index: 1;
}

#box li {
  top: -80px;
  left: -60px;
  width: 120px;
  height: 160px;
  position: absolute;
  text-align: center;
  line-height: 160px;
  background-color: rgba(5, 100, 80, 0.2);
  border: 1px solid rgba(125, 255, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  cursor: pointer;
}

#box li span {
  font-size: 28px;
  font-weight: blod;
  text-shadow: 2px 2px 5px black;
  color: #efebef;
}

.mask {
  width: 100%;
  height: 100%;
  background: url('../assets/bg_mask.jpg') no-repeat center;
  background-size: cover;
  filter: blur(5px);
}

.mask > .bg-mask {
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.25;
}

.mask > .name {
  position: absolute;
  text-align: center;
  left: 0;
  top: 0;
  width: 100%;
  line-height: 685px;
  height: 100%;
  /* z-index: 1; */
  color: white;
  opacity: 0.5;
  font-size: 100px;
  letter-spacing: 80px;
}
</style>